<?php /* Smarty version Smarty-3.1.13, created on 2013-05-08 12:55:59
         compiled from "views\cart.html" */ ?>
<?php /*%%SmartyHeaderCode:19932518a36fc901215-94403894%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a04a0b06aec7e3830b5a95054064bf2cb7fe9d14' => 
    array (
      0 => 'views\\cart.html',
      1 => 1368017752,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19932518a36fc901215-94403894',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_518a36fc9b9e52_67901984',
  'variables' => 
  array (
    'arrayCarInfos' => 0,
    'totalPrice' => 0,
    'isLogin' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_518a36fc9b9e52_67901984')) {function content_518a36fc9b9e52_67901984($_smarty_tpl) {?>
<div class="cart_list_t">产品清单</div>
<?php if ($_smarty_tpl->tpl_vars['arrayCarInfos']->value==false||$_smarty_tpl->tpl_vars['arrayCarInfos']->value==''){?> <br />
您的购物车中暂无商品信息，请<strong><a href="index.php" class="a1">选择</a>！</strong> <br />
<?php }else{ ?>
<table class="cart_table">
  <thead>
    <tr>
      <!-- <td>选择</td> -->
      <td>产品名称</td>
      <td>版本</td>
      <td>授权方式</td>
      <td>订购价(&yen;)</td>
      <td>订数量</td>
      <td>订金额(&yen;)</td>
	  <td>操作</td>
    </tr>
  </thead>
  <tbody>
  
  <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['cbID'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['name'] = 'cbID';
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['arrayCarInfos']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['cbID']['total']);
?>
  <tr>
    <!-- <td><input type="checkbox"></td> -->
    <td class="cart_name"><a href="details.php?pid=<?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['id'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['name'];?>
</a></td>
    <td><?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['version'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['license'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['price'];?>
</td>
    <td><input type="text" class="cart_num" id="num_<?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['num'];?>
" onblur="javascript:goupdate(<?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['id'];?>
);" ></td>
    <td><?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['smallTotalPrice'];?>
</td>
    <td><a href="javascript:if(window.confirm('确定从购物车中移除该商品？')==true){window.location.href='cart.php?rpid=<?php echo $_smarty_tpl->tpl_vars['arrayCarInfos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cbID']['index']]['id'];?>
&t=remove';}" class="a1">移除</a></td>
  </tr>
  <?php endfor; endif; ?>
    </tbody>
  
</table>
<?php }?>
<p class="cart_tip"><a class="cart_del" href="javascript:if(window.confirm('确定清空购物车？')==true){window.location.href='cart.php?t=clearAll';}">清空购物车</a><span>运费：<i>免费送货 运费 0 元</i></span></p>
<p class="cart_count">总计：<i>&yen;<?php echo $_smarty_tpl->tpl_vars['totalPrice']->value;?>
</i></p>
<div class="cart_ctrl">如有问题，欢迎随时致电：020-87509004<a href="index.php" class="btn_continue">继续购物</a><a href="<?php if ($_smarty_tpl->tpl_vars['arrayCarInfos']->value==false||$_smarty_tpl->tpl_vars['arrayCarInfos']->value==''){?>javascript:alert('请选择商品，然后提交订单！'); <?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['isLogin']->value=='T'){?>getbuyuserinfo.php<?php }else{ ?>telllogin.php<?php }?><?php }?>" class="btn_xiadan">在线下单</a></div>

<script type="text/javascript">
	function goupdate(id)
	{
		var numedit = $("#num_"+id).val();
		window.location.href="cart.php?upid="+id+"&num="+numedit+"&t=update";
	}
</script>
<?php }} ?>